<template>
  <div>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :page-sizes="[12, 24, 36, 48]"
      :page-size="12"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  props: {
    total: {
      type: Number,
      default() {
        return
      },
    },
  },

  methods: {
    handleSizeChange(val) {
      this.$emit('num', val)
    },
    handleCurrentChange(val) {
      this.$emit('num2', val)
    },
  },
}
</script>

<style lang="less" scoped>
.el-pagination {
  width: 100%;
}
</style>
